package com.shensi.appCollect.service;

import com.shensi.appCollect.pojo.CustomerCardUseRecord;
import com.shensi.api.order.domian.station.PayOrder;
import com.shensi.appCollect.pojo.vo.RefundResultVO;

/**
 * @date 2023/11/13
 */
public interface PosRefundService {

    /**
     * 查询24小时内最后一笔支付消费的订单
     * @return
     */
    PayOrder getLastPaidConsumeOrder(String mobilePhone, Integer stationId, Integer consumerId);

    PayOrder getOneOrder(String orderNo,Integer stationId);

    /**
     * 查询24小时内最后一笔支付消费的订单
     * @return
     */
    CustomerCardUseRecord getLastPaidRechargeOrder(String mobilePhone, Integer stationId, Integer consumerId);

    CustomerCardUseRecord getOneRechargeOrder(String orderNo,Integer stationId);
    /**
     * 退款消费订单
     * @return
     */
    RefundResultVO refundConsumeOrder(Integer orderId,Integer userId);
    /**
     * 退款充值订单
     * @return
     */
    RefundResultVO refundRechargeOrder(Integer orderId,Integer userId);

}
